package service;

import java.util.ArrayList;
import java.util.List;

import contacts614.po.Room;
import dao.IRoomDao;
import dao.impl.RoomImpl;

public class RoomService {
	private IRoomDao roomDao = new RoomImpl();

	public void addRoom(Room room) {
		roomDao.addRoom(room);
	}

	public void updateRoom(Room room) {
		roomDao.updateRoom(room);
	}

	public void deleteRoom(String roomNo) {
		roomDao.deleteRoom(roomNo);
	}

	public Room getRoom(String roomNo) {
		return roomDao.findOneRoom(roomNo);
	}

	public List<Room> findAllRoom() {
		return roomDao.findAllRoom();
	}
}
